@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-offset-2">
            <div class="panel panel-default">
                <div class="panel-heading">Dashboard</div>

                <div class="panel-body">
                    @if (session('status'))
                        <div class="alert alert-success">
                            {{ session('status') }}
                        </div>
                    @endif
                        @role('admin')
                        <p>admin only show</p>
                        @endrole
                        @role('owner')
                        <p>only owner show</p>
                        @endrole
                    You are logged in!
                    <button id="test">test</button>
                    <el-button>elButton</el-button>
                        <example-component></example-component>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection

@section('js')
    <script>
        $(function () {
            $('#test').click(function () {
                console.log('test')
            })
        })
    </script>
@endsection
